<?xml version="1.0" encoding="UTF-8"?><html>
   <head>
      <title>Parliament Workflow</title>
      <link rel="stylesheet" href="docs.css" type="text/css"></link>
   </head>
   <body>
      <h1 class="main">Parliament Workflow</h1>
      <div id="toc">
         <a name="table-of-contents"></a>
         <h1 class="index">Document Index</h1> <ul id="menu">
<li><a href="address.html">address</a></li>
<li><a href="agenda_item.html">agenda_item</a></li>
<li><a href="attachment.html">attachment</a></li>
<li><a href="bill.html">bill</a></li>
<li><a href="committee.html">committee</a></li>
<li><a href="event.html">event</a></li>
<li><a href="group.html">group</a></li>
<li><a href="heading.html">heading</a></li>
<li><a href="membership.html">membership</a></li>
<li><a href="motion.html">motion</a></li>
<li><a href="parliament.html">parliament</a></li>
<li><a href="question.html">question</a></li>
<li><a href="report.html">report</a></li>
<li><a href="signatory.html">signatory</a></li>
<li><a href="sitting.html">sitting</a></li>
<li><a href="tabled_document.html">tabled_document</a></li>
<li><a href="user.html">user</a></li>
</ul>
 
         
         <h2 class="index">Index of 
            <a href="#states">States</a>
         </h2>
         <div class="toc-links">
            <a href="#draft">Draft - Parliament not yet Active</a>,
            <a href="#active">Active Parliament</a>,
            <a href="#dissolved">Parliament is Dissolved</a>
         </div>
         <h2 class="index">Index of 
            <a href="#transitions">Transitions</a>
         </h2>
         <div class="toc-links">
            <a href="#d1e85">Create</a>,
            <a href="#d1e87">Activate</a>,
            <a href="#d1e89">Dissolve</a>,
            <a href="#d1e92">Deactivate</a>
         </div>
      </div>
      <a name="transitions"></a>
      <h3>Parliament:Transitions</h3>
      <div class="linkbar">
         <a href="#table-of-contents">[Document Index]</a>,
         <a href="#states">[States]</a>,
         <a href="./parliament.dot.png" target="_blank">[Workflow Diagram]</a>
      </div>
      <table border="1">
         <thead>
            <tr class="yellow">
               <th>Transition Name</th>
               <th>Source</th>
               <th>Destination</th>
               <th>Roles</th>
               <th>Action/Condition</th>
               <th>Confirm?</th>
            </tr>
         </thead>
         <tbody>
            <tr class="m1">
               <td>
                  <a name="d1e85"></a>
                  <span class="transition-title">Create</span>
                  <div class="trig">(Auto)</div>
               </td>
               <td></td>
               <td>
                  <a href="#draft">draft</a>
                  <br></br>
               </td>
               <td></td>
               <td>
                  <p style="text-align:left"> A: 
                     <span class="ident"></span>
                  </p>
                  <p style="text-align:left"> C: 
                     <span class="ident"></span>
                  </p>
               </td>
               <td>false
                  <br></br>[not declared]
               </td>
            </tr>
            <tr class="m0">
               <td>
                  <a name="d1e87"></a>
                  <span class="transition-title">Activate</span>
                  <div class="trig">(Manual)</div>
               </td>
               <td>
                  <a href="#draft">draft</a>
                  <br></br>
                  <a href="#dissolved">dissolved</a>
                  <br></br>
               </td>
               <td>
                  <a href="#active">active</a>
                  <br></br>
               </td>
               <td>Clerk
                  <br></br>Speaker
                  <br></br>
               </td>
               <td>
                  <p style="text-align:left"> A: 
                     <span class="ident"></span>
                  </p>
                  <p style="text-align:left"> C: 
                     <span class="ident"></span>
                  </p>
               </td>
               <td>true</td>
            </tr>
            <tr class="m1">
               <td>
                  <a name="d1e89"></a>
                  <span class="transition-title">Dissolve</span>
                  <div class="trig">(Manual)</div>
               </td>
               <td>
                  <a href="#active">active</a>
                  <br></br>
               </td>
               <td>
                  <a href="#dissolved">dissolved</a>
                  <br></br>
               </td>
               <td>Clerk
                  <br></br>Speaker
                  <br></br>
               </td>
               <td>
                  <p style="text-align:left"> A: 
                     <span class="ident"></span>
                  </p>
                  <p style="text-align:left"> C: 
                     <span class="ident">has_end_date</span>
                  </p>
               </td>
               <td>true</td>
            </tr>
            <tr class="m0">
               <td>
                  <a name="d1e92"></a>
                  <span class="transition-title">Deactivate</span>
                  <div class="trig">(Manual)</div>
               </td>
               <td>
                  <a href="#active">active</a>
                  <br></br>
                  <a href="#dissolved">dissolved</a>
                  <br></br>
               </td>
               <td>
                  <a href="#draft">draft</a>
                  <br></br>
               </td>
               <td>Clerk
                  <br></br>Speaker
                  <br></br>
               </td>
               <td>
                  <p style="text-align:left"> A: 
                     <span class="ident"></span>
                  </p>
                  <p style="text-align:left"> C: 
                     <span class="ident"></span>
                  </p>
               </td>
               <td>true</td>
            </tr>
         </tbody>
      </table>
      <a href="#table-of-contents">[Document Index]</a>
      <a name="states"></a>
      <h3>Parliament:States</h3>
      <div class="linkbar">
         <a href="#table-of-contents">[Document Index]</a>,
         <a href="#transitions">[Transitions]</a>,
         <a href="./parliament.dot.png" target="_blank">[Workflow Diagram]</a>
      </div>
      <div class="tag-container">
         <p>
            <h3>Parliament:State Tags</h3>
            <span class="state-tag">public</span>
         </p>
      </div>
      <h4>Global Grants</h4>
      <table border="1">
         <tr>
            <td>
               <em>Permission</em>
            </td>
            <td>
               <em>Role</em>
            </td>
         </tr>
         <tr class="s1">
            <td>parliament.Add</td>
            <td>Clerk</td>
         </tr>
         <tr class="s0">
            <td>parliament.Edit</td>
            <td>Clerk</td>
         </tr>
         <tr class="s1">
            <td>parliament.Delete</td>
            <td>Clerk</td>
         </tr>
      </table>
      <h4>State Grants</h4>
      <table border="1">
         <thead>
            <tr class="yellow">
               <th>State Name</th>
               <th>Allow</th>
               <th>Deny</th>
            </tr>
         </thead>
         <tbody>
            <tr class="m1">
               <td>
                  <a name="draft"></a>
                  <span class="state-title">Draft - Parliament not yet Active</span>
               </td>
               <td>  
                  <table border="0">
                     <tr>
                        <td>
                           <em>Permission</em>
                        </td>
                        <td>
                           <em>Role</em>
                        </td>
                     </tr>
                     <tr class="s1">
                        <td>parliament.View</td>
                        <td>Clerk</td>
                     </tr>
                     <tr class="s0">
                        <td>parliament.Delete</td>
                        <td>Owner</td>
                     </tr>
                  </table>`
                  
               </td>
               <td>  
                  <table border="0">
                     <tr>
                        <td>
                           <em>Permission</em>
                        </td>
                        <td>
                           <em>Role</em>
                        </td>
                     </tr>
                     <tr class="s1">
                        <td>parliament.View</td>
                        <td>Speaker - Owner - Signatory - MP - Minister - Anonymous</td>
                     </tr>
                     <tr class="s0">
                        <td>groupmember.Edit</td>
                        <td>Clerk</td>
                     </tr>
                     <tr class="s1">
                        <td>groupmember.Add</td>
                        <td>Clerk</td>
                     </tr>
                     <tr class="s0">
                        <td>groupmember.Delete</td>
                        <td>Clerk</td>
                     </tr>
                  </table>
               </td>
            </tr>
            <tr class="m0">
               <td>
                  <a name="active"></a>
                  <span class="state-title">Active Parliament</span>
                  <div> Like:
                     
                     <a href="#draft">Draft - Parliament not yet Active</a>
                  </div>
                  <div class="tag-container">
                     <p>
                        <strong>Tags:</strong>
                        <span class="block-tag">public</span>
                     </p>
                  </div>
               </td>
               <td>  
                  <table border="0">
                     <tr>
                        <td>
                           <em>Permission</em>
                        </td>
                        <td>
                           <em>Role</em>
                        </td>
                     </tr>
                     <tr class="s1">
                        <td>parliament.View</td>
                        <td>Speaker - Owner - Signatory - MP - Minister - Anonymous</td>
                     </tr>
                     <tr class="s0">
                        <td>groupmember.Edit</td>
                        <td>Clerk</td>
                     </tr>
                     <tr class="s1">
                        <td>groupmember.Add</td>
                        <td>Clerk</td>
                     </tr>
                     <tr class="s0">
                        <td>groupmember.Delete</td>
                        <td>Clerk</td>
                     </tr>
                  </table>`
                  
               </td>
               <td>  
                  <table border="0">
                     <tr>
                        <td>
                           <em>Permission</em>
                        </td>
                        <td>
                           <em>Role</em>
                        </td>
                     </tr>
                     <tr class="s1">
                        <td>parliament.Delete</td>
                        <td>Owner</td>
                     </tr>
                  </table>
               </td>
            </tr>
            <tr class="m1">
               <td>
                  <a name="dissolved"></a>
                  <span class="state-title">Parliament is Dissolved</span>
                  <div> Like:
                     
                     <a href="#active">Active Parliament</a>
                  </div>
                  <div class="tag-container">
                     <p>
                        <strong>Tags:</strong>
                        <span class="block-tag">public</span>
                     </p>
                  </div>
               </td>
               <td>  
                  <table border="0">
                     <tr>
                        <td>
                           <em>Permission</em>
                        </td>
                        <td>
                           <em>Role</em>
                        </td>
                     </tr>
                  </table>`
                  
               </td>
               <td>  
                  <table border="0">
                     <tr>
                        <td>
                           <em>Permission</em>
                        </td>
                        <td>
                           <em>Role</em>
                        </td>
                     </tr>
                     <tr class="s1">
                        <td>groupmember.Edit</td>
                        <td>Clerk</td>
                     </tr>
                     <tr class="s0">
                        <td>groupmember.Add</td>
                        <td>Clerk</td>
                     </tr>
                     <tr class="s1">
                        <td>groupmember.Delete</td>
                        <td>Clerk</td>
                     </tr>
                  </table>
               </td>
            </tr>
         </tbody>
      </table>
      <a href="#table-of-contents">[Document Index]</a>
   </body>
</html>